//
//  BLSquareButton.m
//  百思不得姐
//
//  Created by hbl on 16/3/30.
//  Copyright © 2016年 hbl. All rights reserved.
//

#import "BLSquareButton.h"

@implementation BLSquareButton



- (void)layoutSubviews
{
    [super layoutSubviews];
    CGFloat imagHW = 45;
    self.titleLabel.textAlignment = NSTextAlignmentCenter;
    [self setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
    self.titleLabel.font = [UIFont systemFontOfSize:15];
    self.imageView.bounds = CGRectMake(0, 0, imagHW, imagHW);
    self.imageView.center = CGPointMake(self.frame.size.width * 0.5, self.frame.size.width * 0.4);
    self.titleLabel.frame = CGRectMake(0, CGRectGetMaxY(self.imageView.frame), self.frame.size.width, self.frame.size.height - CGRectGetMaxY(self.imageView.frame));
}

@end
